package org.llc.gof.structure.proxy.dynamic.basic0;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Proxy;

/**
 * @author harvey
 */
public class DynamicProxy {

	public static <T> T newProxyInstance(ClassLoader loader, Class<?>[] interfaces, InvocationHandler h){
		T newProxyInstance = (T)Proxy.newProxyInstance(loader,interfaces, h);
		return newProxyInstance;
	}

}
